package net.akkz.model;

import java.util.Map;

public class Action
{
	private String id;
	private Object clazz;
	private String permission;
	private Map<String, Result> results;

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getPermission()
	{
		return permission;
	}

	public void setPermission(String permission)
	{
		this.permission = permission;
	}

	public Map<String, Result> getResults()
	{
		return results;
	}

	public void setResults(Map<String, Result> results)
	{
		this.results = results;
	}

	public void addResult(String name, Result value)
	{
		this.results.put(name, value);
	}

	public Result getResult(String name)
	{
		return this.results.get(name);
	}

	public Object getClazz()
	{
		return clazz;
	}

	public void setClazz(Object clazz)
	{
		this.clazz = clazz;
	}
}
